package com.wan.personnel2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

import java.util.Date;

/**
 * @author anning
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class DocumentInf extends Model<DocumentInf> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String title;

    private String filename;

    private String remark;


    private Date createDate;

    private Integer userId;

    public DocumentInf(String title, String filename, String remark, Date createDate, Integer userId) {
        this.title = title;
        this.filename = filename;
        this.remark = remark;
        this.createDate = createDate;
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DocumentInf{" +
            "id=" + id +
            ", title=" + title +
            ", filename=" + filename +
            ", remark=" + remark +
            ", createDate=" + createDate +
            ", userId=" + userId +
        "}";
    }
}
